﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderDetail.aspx.cs" Inherits="Card.Manager.OrderDetail" %>

<%@ Import Namespace="Card.Utility" %>
<%@ Import Namespace="Card.Security" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>订单详情</title>
    <link href="Css/Style.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table class="TB">
        <tr>
            <td class="TD_Input_Text">
                订单号
            </td>
            <td class="TD_Input">
                <%=this.Order.OrderID %>
            </td>
            <td class="TD_Input_Text">
                会员名
            </td>
            <td class="TD_Input">
                <%=this.Users.UserName %>
            </td>
        </tr>
        <tr>
            <td class="TD_Input_Text">
                收件人
            </td>
            <td class="TD_Input">
                <%=this.Order.Receiver %>
            </td>
            <td class="TD_Input_Text">
                收件人电话
            </td>
            <td class="TD_Input">
                <%=this.Order.Phone %>
            </td>
        </tr>
        <tr>
            <td class="TD_Input_Text">
                收货地址
            </td>
            <td class="TD_Input">
                <%=this.Order.Address %>
            </td>
            <td class="TD_Input_Text">
                送货时间
            </td>
            <td class="TD_Input">
                <%= Card.Common.LookUpCache.GetLookupValue(Card.CONST.LOOKUP_TYPE.SIPPING_DATE,this.Order.SippingDateCode).Value %>
            </td>
        </tr>
        <tr>
            <td class="TD_Input_Text">
                付款方式
            </td>
            <td class="TD_Input">
                <%= Card.Common.LookUpCache.GetLookupValue(Card.CONST.LOOKUP_TYPE.PAYMENT_METHOD, this.Order.PaymentMethodCode).Value%>
            </td>
            <td class="TD_Input_Text">
                订单总金额
            </td>
            <td class="TD_Input">
                <%= this.Order.TotalMoney %>
            </td>
        </tr>
        <tr>
            <td class="TD_Input_Text">
                备注
            </td>
            <td colspan="3" class="TD_Input">
                <%= this.Order.Remark %>
            </td>
        </tr>
        <tr>
            <td class="TD_Input_Text">
                订单状态
            </td>
            <td class="TD_Input" colspan="3">
                <asp:DropDownList ID="dropStatus" runat="server">
                </asp:DropDownList>
            </td>
            <%-- <td class="TD_Input_Text">
                修改金额
            </td>
            <td class="TD_Input">
                <asp:TextBox ID="txtModifyMoney" runat="server"></asp:TextBox>
            </td>--%>
        </tr>
        <%-- <tr>
            <td class="TD_Input_Text">
                修改金额原因
            </td>
            <td colspan="3" class="TD_Input">
                <asp:TextBox ID="txtModifyReason" runat="server" Width="90%" MaxLength="512"></asp:TextBox>
            </td>
        </tr>--%>
        <tr>
            <td colspan="4" align="center">
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" />
                <asp:Button ID="btnBack" runat="server" Text="返回" OnClick="btnBack_Click" />
            </td>
        </tr>
    </table>
    <table class=" TB">
        <tr class="TB_Header">
            <td align="left">
                配送信息
            </td>
        </tr>
        <tr>
            <td>
                <asp:Repeater ID="rptList" runat="server">
                    <HeaderTemplate>
                        <table class="TB">
                            <tr class="TB_Header">
                                <td>
                                    编号
                                </td>
                                <td>
                                    名片
                                </td>
                                <td>
                                    名片简述
                                </td>
                                <td>
                                    价格(元)
                                </td>
                                <td>
                                    数量
                                </td>
                                <td>
                                    小计(元)
                                </td>
                                <td>
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="TB_Item">
                            <td align="center">
                                <%# Eval("CARD_ID")%>
                            </td>
                            <td align="center">
                                <a href='OrderCard.aspx?id=<%# Card.Security.Utility.EncryptString(Eval("ID").ToString()) %>'>
                                    <img border='0' height="60" src='<%# ImageUtilty.GetOrderCardListImagePath(int.Parse(Eval("CARD_ID").ToString()),int.Parse(Eval("USER_ID").ToString()),Eval("FRONT_IMAGE").ToString()) %>' /></a>
                            </td>
                            <td>
                                <a style="line-height: 30px; text-decoration: none; font-size: 14px;" href='OrderCard.aspx?id=<%# Card.Security.Utility.EncryptString(Eval("ID").ToString()) %>'>
                                    <%# Eval("CARD_NAME")%></a>
                                <p style="color: #999; line-height: 20px;">
                                    <%# Eval("CARD_SETTING_NAME")%>|<%# Eval("BOX_NUM")%>盒|<%# Eval("CORNER_NAME")%>|<%# bool.Parse(Eval("IS_ADJUST").ToString())?"有微调":"无微调"%></p>
                            </td>
                            <td align="center">
                                <%# Eval("TOTAL_MONEY")%>
                            </td>
                            <td align="center">
                                1
                            </td>
                            <td align="center">
                                <%# Eval("TOTAL_MONEY")%>
                            </td>
                            <td align="center">
                                <a href='OrderCard.aspx?id=<%# Card.Security.Utility.EncryptString(Eval("ID").ToString()) %>'>
                                    详情</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
